package page2;

import java.util.Scanner;

//import org.junit.Test;

public class Ques1825 {
	
	public int nextPrime(int sum){
		for(int i = 2;i < Math.sqrt(sum);i++){
			if(sum % i == 0){
				sum = this.nextPrime(sum + 1);
			}
		}
		return sum;
	}
	
//	@Test
//	public void test(){
//		System.out.println(this.nextPrime(4));
//	}
	
	public void go(){
		Scanner scan = new Scanner(System.in);
		int a,b,temp,index;
		String result;
		while(scan.hasNext()){
			a = scan.nextInt();
			b = scan.nextInt();
			for(int i = a;i <= b;i++){
				result = i+"=";
				index = 2;
				temp = i;
				while(temp != 1){
					while(temp % index == 0){
						result = result + index + "*";
						temp = temp / index;
					}
					index++;
					index = this.nextPrime(index);
				}
				System.out.println(result.substring(0, result.length() - 1));
			}
		}
	}
	
	public static void main(String[] args) {
		new Ques1825().go();
	}
}
